/*
 * RepRapExportDialog.hpp
 *
 * Copyright 2012 Pieter Agten
 *
 * This file is part of tltgen.
 *
 * tltgen is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * tltgen is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with tltgen.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * @file   RepRapExportDialog.hpp
 * @author Pieter Agten (pieter.agten@gmail.com)
 * @date   13 sep 2012
 */
#ifndef REPRAPEXPORTDIALOG_HPP
#define REPRAPEXPORTDIALOG_HPP

#include <wx/wx.h>

#include "RepRapTableWriter.hpp"

namespace tltgen {

  class RepRapExportDialog : public wxDialog {
  public:
    RepRapExportDialog(wxWindow* parent, wxWindowID id, const shared_ptr<ThermistorTable>& thermistorTable, 
		       const wxString& title = _("RepRap Export"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, 
		       long style = wxDEFAULT_DIALOG_STYLE);
    virtual ~RepRapExportDialog();

  protected:
    DECLARE_EVENT_TABLE();

    virtual std::string getTableName() const;
    //    virtual unsigned int getOversampleCount() const;

    virtual void onOkButtonClicked(wxCommandEvent& event);

    wxTextCtrl* txtTableName;
    //wxTextCtrl* txtVariableModifiers;
    //wxTextCtrl* txtOversampleMacroName;
    //wxSpinCtrl* spnOversampleCount;

    const shared_ptr<ThermistorTable> thermistorTable;
  };

}

#endif
